package com.czk.yygh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czk.model.order.OrderInfo;
import com.czk.model.order.PaymentInfo;

import java.util.Map;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/11/30 16:32
 */
public interface PaymentService extends IService<PaymentInfo> {
    /**
     * 查询支付信息
     *
     * @param orderInfo
     * @param status
     */
    void savePaymentInfo(OrderInfo orderInfo, Integer status);

    /**
     * 更新订单数据库
     *
     * @param out_trade_no
     * @param resultMap
     */
    void paySuccess(String out_trade_no, Map<String, String> resultMap);

    /**
     * 获取支付记录
     *
     * @param orderId
     * @param paymentType
     * @return
     */
    PaymentInfo getPaymentInfo(Long orderId, Integer paymentType);
}
